//
//  HEGesturesPasswordView.h
//  HealthFamily
//
//  Created by 吴欧 on 2021/2/22.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, HEGesturesPasswordModel) {
    HEGesturesPasswordModelModify, //修改密码 (需要先输入老密码)
    HEGesturesPasswordModelReset,  //重置密码（无论存不存老密码都一并删除，在重新设置密码）
    HEGesturesPasswordModelValidate, //验证密码 (输入一遍，进行验证)
    HEGesturesPasswordModelDelete,  //删除密码
    HEGesturesPasswordModelNone
};


NS_ASSUME_NONNULL_BEGIN

@protocol HEGesturesPasswordViewDelegate <NSObject>

- (void)toSmsLoginHandler;

@end

typedef void (^PasswordBlock) (NSString *pswString);

@interface HEGesturesPasswordView : UIView

@property (nonatomic, weak) id <HEGesturesPasswordViewDelegate> delegate;

@property (nonatomic, assign) HEGesturesPasswordModel gestureModel;

@property (nonatomic , strong) PasswordBlock block;

@end

NS_ASSUME_NONNULL_END
